﻿@inherits NFinal.View.RazorView<ModelData>
@using NFinalCompiler.SqlModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using NFinal.Data.Repository;
using @(Model.ModelNameSpace).@Model.DataBaseShortName;
namespace @(Model.BLLNameSpace).@Model.DataBaseShortName
{
    /// <summary>
    /// @(Model.Table.Description)BLL
    ///</summary>
    public partial class @ModelHelper.GetTableName(Model.Table)BLL : Repository<@ModelHelper.GetTableName(Model.Table)Info>
    {
        private static @ModelHelper.GetTableName(Model.Table)BLL _instance;
        private static readonly object Lock = new object();
        public static @ModelHelper.GetTableName(Model.Table)BLL Instance
        {
            get
            {
                if (_instance == null)
                {
                    lock (Lock)
                    {
                        if (_instance == null)
                        {
                            _instance = new @ModelHelper.GetTableName(Model.Table)BLL();
                        }
                    }
                }
                return _instance;
            }
        }
        public @ModelHelper.GetTableName(Model.Table)BLL() : base(new @ModelHelper.GetTableName(Model.Table)Dal())
        {
        }

    }
}